#include <stdio.h>

int my_strlen(char* str)
{
	char* start = str;
	char* end = str;

	while (*end) {
		end++;
	}
	return end - start;

	//int count = 0;
	//while (*str) {
	//	str++;
	//	count++;
	//}
	//return count;
}

int main()
{


	//char* str = "1234abcd";
	//int len = my_strlen(str);
	//printf("%d\n", len);

	//int a[10];
	//float* p = (float*)a;
	//float* q = (float*)&a[7];
	//printf("%d\n", q - p);
	//int* q = NULL;
	//*q = 100;
	//int a[] = { 1,2,3,4,5 };
	//int num = sizeof(a) / sizeof(a[0]);
	//int* p = a;

	//int* q = NULL;

	//for (int i = 0; i < num+10000; i++) {
	//	//printf("%d\n", a[i]); //*(a+i)
	//	/*printf("%d\n", *(a + i));*/

	//	printf("%d\n", *(p + i));
	//	/*printf("%d\n", p[i]);*/
	//}

	//int* p = 0x1223123123;
	//*p = 100;
	//int a;
	//printf("%d\n", a);
	//int n = 0x11223344;
	//char* p = (char*)&n;
	//short* q = (short*)&n;
	////*p = 0;
	//*q = 0;
	//printf("%x\n", *w);
	//printf("%x\n", *p);
	//printf("%x\n", *q);
	//char* str = "abcd1234";
	//int len = my_strlen(str);
	//printf("len: %d\n", len);

	//int n = 10;
	//char* p = (char*)&n;

	//printf("%p\n", &n);
	//printf("%p\n", p);

	//printf("%p\n", (short*)&n+1); //int*
	//printf("%p\n", p+1);  //char*

	//10,10L,10u,3.14,3.14f

	//int a = 10;
	//int* p = &a;
	//*p = 20;
	//int* q = p;
	//p = 20;
	//int b = a;
	//a = 20;
	//int i = 10;
	//i = i-- - --i * (i = -3) * i++ + ++i;
	//printf("i = %d\n", i);
	//10+20*10
	//printf("%lf\n", 10.0 / 2);

	return 0;
}